package com.gxa.educate.core.common;

/**
 * @author lh
 * @date 2022/7/7 15:33
 * 这是一个用于将同一个线程中的数据进行封装的类
 */
public class UserThreadLocal {
    private static ThreadLocal threadLocal = new ThreadLocal();

    public void set(Object value) {
        threadLocal.set(value);
    }

    public Object get() {
        return threadLocal.get();
    }

    public void remove() {
        threadLocal.remove();
    }
}
